Fix build under g++.