removed redundant insert and added a missing define on mac os x
Merge pull request #17 from erkmos/macfixes

removed redundant insert and added a missing define on mac os x