Object.create replacement compatible with old browsers. Extracted from https://github.com/kriskowal/es5-shim