fix minor compiler warnings