Made the project compile with GCC 4.8.2

By placing -std=c++11 as the first CXX flag.
CXX_FLAGS not C_FLAGS
Merge pull request #16 from xyproto/0.8.0_fix

Made the project compile with GCC 4.8.2