Fixes to build on Linux/GCC/Glibc.