fix x64 compile warning & generate libdynamic