Fixes for Linux to compile.