Fix clang warnings(funopen)