fix index type in UVC camera
port configure to Mac OS X