Yes, the free version can be used as a DLL. You only need to publish it then as an open source project, so you have to include your C++ source when publishing it.