Add more strict checks when compiling on Linux.