fixed the msvc complain about class value and add GetProcAddress() for class Lib