Added export macro for Exception classes.