config: Use built-in getopt on non-MSVC environments.
Makefile: Remove unneeded arguments in CCFLAGS.

This fixes a compilation on clang.