Hi,
First thank for this procedure it's working well on Ubuntu 16.4 and the ubuntu android sdk package installed
I compiled well the binary with the build.sh script. The deploy script worked well too.
When I tried the iwconfig installed in /system/xbin I've got this error message :
error: only position independent executables (PIE) are supported.
This is the problem of the newer versions of Android
I tried this http://blog.yurushao.info/2016/03/Android-PIE/ no issue
The odd thing is some binary has the 17th byte with the value 03, the other not and I change it