Added optional DLL support.