os x build fix

fixes https://github.com/clementfarabet/lua---mattorch/issues/5