Only use dllexport when we have no shared library