Added an IE compatibility layer.

This is not fully functional but should allow for its basic use in IE10.