Applied patch from Dmitry V. Levin fixing two compilation warnings.