fix some trivial compiler warnings