fix some line ending issues and add a license header to wmessages.pas