Set language to C++
Use getopt_long to parse command line arguments. This allows parsing long as well as short command line arguments.

Fixes #7