Moved build to premake4

- moved build to premake4
- fixed compiler warnings
- increased pool size to fit 64bit ptrs