Fixed Compile Errors on linux