core: fix readlink() on win32

Signed-off-by: David Aguilar <davvid@gmail.com>