[FIX] add DLLAPI to two functions
[BUILD] turn on -fvisibility=hidden for gcc