Add build script and libraries, adapted from src.peekbehind.com