dlight now builds with GCC and clang

Tested with Win64, Win32, and Linux x86_64.

I wrote CMakeLists.txt files to generate project files, removed const from the return type of Length since rvalues since the compiler was removing const anyway, and I made sure to explicitly specify members of kexArray<type> in array.h

Note there are still a bunch of GCC warnings! A second pull request will be made when those are fixed