Style fixes
Move a long case statement to a new function
Replace integer literals 32768 to 'maxcolors'
Fix tests for some environments that have not getopt_long
Suppress warnings for Interix build(without HAVE_GEtOPT_LONG)
Minor style fixes
Fix tests as respecting POSIX compliant behavior of getopt
Add conditional variable for makefile: HAVE_GETOPT_LONG
Merge branch 'fix-for-no-long-option-build' into develop
Merge branch 'develop' into travis-kill-bashism