Use an internal defineProperties helper to make properties non-enumerable where possible

Fixes #83.