Support FreeBSD
 - store jthrowable instances as global references