Compile Fixes for GCC on Linux