Fixed two compilation bugs which did not exist in Windows. Changed stencil comparison error to relative instead of absolute.