Fix compiling issues on linux