Added C/C++11 standard to options.

- Calling "makegen -c11" now creates makefile with -std=c11 or
  -std=c++11 compilation flags.
- Also cleaned up error IO by printing to stderr instead of stdout.