fix GCC warnings in golib