added OS detection (needed for hardware accel)