The -pedantic parameter actually gives me a lot of warnings in stdio
Really? Can you post them?

Try compiling your program from the command line, too.