[platform] environment util optimizations: single map on Windows; code duplication...