small gcc fixes