Several modifications to the use of the MAX_PATH macro on Windows to improve consistency.