added support for dll build