fix compilation macos/gcc47