do dist-upgrade before build