Fixed sorting algorithms to use proper memory allocation for arrays. Still a bug with counting sort.
Premake file courtesy of Alex; fixed a Werror in siftDown