Loading extensions in C or C++