Build improvements.
Fix release task.
Merge pull request #238 from NICTA/buildImprovements

Build improvements