Fixes warnings in puppet 3.