Fixed "Segmentation fault" exception on OpenBSD and alikes