Fix so with_raw_abs and with_raw_rel works again.

I'm not very familiar with how pull requests work on github yet. I actually wanted to make two separate pull requests for these two commits, but ended up making both in the same pull request. So this pull request is both for the simple bugfix that the title mention and adding support for Windows.