fix trivial compiler warnings