Fixed compilation with ruby 2.0 by properly including the CFLAGS in CXXFLAGS.