Fix cpp target detection & openfl native way to call requests