looking for compatibility with g++