Fix compilation with gcc and remove warinigs from system eaders