added java 8 compability

please merge and upload to puppetlabs

thanks!