Fix C++11 support when compiling with GCC. Closes #12.

Add the '-std=c++0x' or '-std=c++11' CXX flag to GCC compiler according to its
version.