Confirm dialog on unsaved changes

when initiating a build, issue a confirm dialog if
there are unsaved changes.

Solves #10