Pass line numbers correctly on Windows too

Inefficient but works for now (Fixes #2)