Add script to automate build of core library