change near and far variable name so it compile under windows