Fixed compiler warnings related to button delegates.