Fixed compiling on Linux and one compiling warn.