wrapper that will need to be rewritten each time (looks like another GNU software engineering malpractice to me). Patches taken from netbsd. problem duly noted by Todd Fries.