old gcc (<= 4.5) fixes