Clang compatibility fix (thanks to Jarryd Beck)