fixed Boost error on OSX

I just installed Groovy on OSX and there were compile errors with boost::lock_guard. These changes allowed the packages to compile so I could finish the install.