Suppress useless warnings, fix the build on linux