Fixed atoll bug in Linux implementation and added GetLastError as a wrapper of WSAGetLastError [windows] and errno [linux].
Use GetLastError instead of WSAGetLastError()