Fix build breakage at application layer when using g++.