Adding static functions to supprt the c libs.