Use -Wno-deprecated-register on clang 3.4+ or Apple clang 5.1+ only (bug 6164)