fix adapter of gcc 4.9