DLL or static libraries - there is no problem. There are a few marketplace plugins that use this approach.