tweaks for different gcc version compilation