Added missing DLL export macro.
Replaced direct access to the ContaceAddedCallback with access
functions. This fixes a DLL linkage problem.