Modified to use static lua51.lib instead of .dll