Helper functions for build.rs that need to compile a bit of C/CXX codes.