Fixed calling convention to cdecl
Fixed deployment of native dependencies
Place native libraries under build/ folder
Fixed mac and linux native targets