Create an entry point into the DLL.

This commit also modifies the project to be written in C rather than
C++.