Changes needed to compile on Linux