Removed obsolete src/getopt.c; modified CMake build accordingly.
config.h unnecessary for now.
CMakeLists tweaks.

Use compiler optimizations, -Wall, -Werror.