implement microsoft7 mousePosition

Also make line endings consistent for zIndex change