Importing misc code in C/C++