V4l portability

WIth these fixes I'm able to use webcam on OpenBSD