Make the configure script produce the same result with or without -Werror. Fix a couple of const char * warnings. Teach the the layout parser about read errors.
Do not break if fgets() detects EOF when invoked *at* EOF instead of setting the EOF flag at the end of the previous invocation, after the final newline has been read.
Choose the small tileset for screens less than 1024 pixels wide. In a perfect world we'd do the check after the actual window has been created, but the changes to the main() function's operation would be too big.