add extra checks for older clang on osx, closes #1660