fixed warnings on linux