fix warnings on Linux