Fix incompatibility with Mac clang 6 (explicit pointer cast to bool)