Fix linux (gcc, clang) build errors

This allows building the game on Linux (and possibly other platforms)