Fixed few linux errors.