Call p_readlink to determine symlink size
Fix call to readlink
Include <string.h>
Replace call to strnlen with call to strlen
Replace LoadLibrary with GetModuleHandle, since kernel32 is loaded by default

As requested
Moved braces to conform to code style
Merge pull request #1325 from SHyx0rmZ/fix-windows-symlinks

Fix Windows symlinks