Fix -Woverloaded-virtual errors when using Clang