Fixed compiling on Mac 10.9.3 with g++-4.8, clang or system c++

Fixed compiling bug on Mac OSX 10.9.3 (#24)