minor compile errors on gcc now