Updated Makefile and added conditional compilation for getopt files on non-Windows