Added C++ compatibility for Clang (and OS X Maverick).