Fix #249: fix links.toAbsolute on windows