Allow building img.gz, fix #99