Compile fixes for Linux