cleanup SDK projects code
correct prototypes
optimize DLL entry point usage