Fix warnings for Linux