Use clang c function overloading instead of C++

http://clang.llvm.org/docs/LanguageExtensions.html#function-overloading-in-c