Treat warnings as errors when doing a debug build on Mac