replace monkeypatching of "stack" property with Error.captureStackTrace, fix #17, fix #16