Fix flags so that they work for mac and non-mac.

Are you saying that we don't need -g since we've got QMAKE_CXXFLAGS_DEBUG?