fix test for HAVE_THUMBBUTTON