added patch from Greg Fitzgerald <netzdamon@gmail.com> to fix bzr