Merge pull request #2946 from dumganhar/develop

Compilation Fixes for WIN32
Bug fixes for the tool to generate luabindings.