revise ctypes and swig posts

Signed-off-by: Qu Xiaofeng <quxiaofeng.at.polyu@gmail.com>