Revert "Don't add non-clang flag regardless of platform."

Apple's g++ on 10.6. does not understand -Wno-unused-local-typedefs
either

This reverts commit 9dd8024e41f35e581b3db5f4a873126398db9d45.