add exception support to default target on nonwindows platforms