lua states; fix for VS