Use getopt_long() instead of getopt_long_only() to parse arguments.

This fixes the error "option '-l' is ambiguous" with MSYS on Windows reported in issue #42.

@emagnier Is it possible to give this change a test and let me know if you still find any issues?