mac os x compatibility: setraw bug fix.