Added a premake5 script.
Fixed bug with abs parentheses in the wrong place.
Patched to remove warnings when building with clang.