Fix QT5 compatibility for Coin Control
Adapted from bitcoin#3267