Fix warnings on Unix