fix compiler warnings reported in #421