Add pthreads to luarocks build process.