Fix build script

I can't edit the branch to send the pull request to, so this a new pull request for #51 

Also, most of these commits are because iclab:dev is behind iclab:master.

@gsathya, would you please review this? I used this branch to push the latest package to pip and confirmed that it installed correctly.
@gsathya, there is no requirements.txt in the repo. Also, this gets pip to handle the dependencies rather than doing it manually.