add ksem prototypes for netbsd