Added error dialog and fixed make.