How to compile a User-Defined DLL