1.7 changes

This PR is to update minechem to 1.7. Though incomplete, this does make most of the code more compatible with 1.7.10.