Install Error.prepareStackTrace before any errors are thrown

A recent change to v8 made it so that Error.prepareStackTrace is called
when an error is thrown, not when the stack property is retrieved:

    https://code.google.com/p/v8/issues/detail?id=2559