tested on OpenIndiana 151a8, seems to build