anttweakbar: fix compilation on 10.8

Closes #21269.