fix compiler warnings when building in Release mode