Some bug fixes for DMD 2.064.2 & Dub support

I think this should be it. This allows the project to be added as a dependency in other Dub projects, and also compiles on Win x86_64 and Linux x64. I've also found a ICE when debugging with symbols in Visual-D, see lua.d:111