static lib lua errors fixed