Fix deprecation warnings

See arioch/puppet-percona#32 but without all the extra cruft
commits in that pull request.