Fix build with clang

Signed-off-by: Douglas Thrift <douglas@douglasthrift.net>