Added getopt library that gcc4.7 didn't recognize