Make this work on NetBSD at least