fix some warnings on older GCCs (e.g. OSX PPC) (nw)