Fix build error under clang on Mac

- Remove APPLE_CLANG_WARNINGS option
- Add warnings via flags instead of definitions