fix build for certain picky versions of gcc