You can try recompiling the source code into a DLL for a shared object. This can help you get started after the code is really portable.
Edit:
Here is another link that will help you in the process of creating a shared library using GCC and other parts of the GNU toolchain. This link will help you discover the pitfalls that other people had when implementing a project like this.
There is only such help that can be provided for such a specific task, especially with so many unknowns. If you decide to provide additional information in your question, leave a comment.
NB . I get these links directly from Google.
source share