fix #29
ref #29
* fix mac compile issue (include cmath)
Merge pull request #30 from cgcostume/fix_program_use_29

Fix program use 29