Re-did build system to be like libbin's.