Added check if C++11 support is enabled. Since gcc 4.7, macro __cplusplus is set accordingly.
Fixed typo