fixed implcit getopt() warning by defining _POSIX_C_SOURCE to 2