Fix gcc warnings
Fix lineendings