Fix amalgamated build. It seems to susceptible to inclusion order.