fix macos compiler warnings