updated build scripts. fixes #14 #13 #7