sourcemaps: Fix line number calculation.

Fixes issue #264
Merge pull request #275 from svnieuw/sourcemaps-fix-linebreaks

sourcemaps: Fix line number calculation.