Fixes for compilation on Linux.