Fix Error and warning Linux