modify to search for lua51 on Windows as that is the name of the library generated for luajit (don't try that on other platforms though)