Switch to os agnostic EOL character.
Fix some issues with sourcemap building.

Was setting the sourcemap's url incorrectly. Also was outputting
the file before appending the sourcemap comment to the minified
file.