[list] Added extern "C" so routines now is callable from C++.