Build scripts

Resent, based on #38