Building Libraries!

turning this project into a library and changing the build system to
cmake
tinytinytiny
mostly works...

mostly works, except for that pesky idiv…