added ld code, ported to cpp windows64 target
android port in progress