Fixed compilation on OSX >= Mavericks, but still need a CXXFLAG -D'_LIBCPP_EXTERN_TEMPLATE(...)=' because handling of extern templates in libc++