Fix warnings for linux build.