Fixes build on OS X w/ (libboost_system)
c++11: use std::mutex, std::lock instead of from boost::
Fixes binding.gyp for building sample on OS X