Android compatibility. Also some line endings got messed up.