Adapt to GHC 7.6.
Correct exit code when no options.
Test cases for startup tests.