Fixed compiling errors on linux