allow using a non-returning cfunction as a void function. fixes #8484