Fix warnings when monkey patching.