Added a flag to fix mac osx 10.9 compiling error. Fixed #4.