generalize to compile on mac
Merge pull request #1 from RussTedrake/NonlinearProgramSnoptmex

generalize to compile on mac