fixed up build scripts and dependencies