Fixed some warning compilations problems on linux