Switched to DLL. Appears to wrap correctly.