Update build. fixes #322