fix solaris build -- forgot to cast func ptr