Fix indentation
Add license information
ifndef GetCurrentUserInfo() if _WIN32 defined
Remove the assignment of pw out of the conditional