core,pyglue: fixed misc compile warnings on gcc44