Only tested on NetBSD/amd64.
That would be good to try on other platforms.
