fix for g++