fix compilation issues with newer versions of puppet