Compile time fixes for Linux