Updated build scripts.

Fixes #13