add stub util for osx, netbsd