Add some helper CMake scripts

Signed-off-by: Eddie Ringle <eddie@eringle.net>
Revamp build system

Signed-off-by: Eddie Ringle <eddie@eringle.net>