added compiler options for os x