code simplified, linker entry point for dll is removed