Fixed mac os compilation on 10.8
Merge pull request #324 from wackou/fix_osx_compilation

Fixed mac os compilation on 10.8