Removed dependency strtok_r/s.
Fix #30. Use -std=gnu++0x instead of -std=c++11.

Apparently the new standard is strict about POSIX functions that are
not part of the standard. strdup is used in a few places and need to
be replaced to change back to -std=c++11.