Fix default GNU C compiler flags
[stubs] Fix compiler warnings