fix warnings when compiling via C