Fix G++ compatibility