Use CRLF
Remove trailing whitespaces
Fix includes and filenames for crosscompilation