Updated cmake lists file to make apple options only occur on apple os x platform.  Also updated to recquire gcc version 4.7 or greater.