Fixed errors with using optarg when compiling with c99 standard. Makefile has also been updated to compile with c99.