fix bug: EXE can't link to dll. And show how to export varible in dll.

Export varible and function only using __declspec(dllexport) without def file.