Fixed -stdlib=libc++ error with g++ 4.8.1