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

Fix compiling bug on Mac OSX 10.9.3 (#24)

Test against ```clang```, ```g++-4.8``` (installed from homebrew) and system ```/usr/bin/c++``` to compile this package without warnings.