Fix for issue 13. 

This should fix a few other issues due to lacking opts when using defineProperties instead of the property function.