Add support for custom title bar buttons (issue #50).