Fix building using g++.