Allocate UDP ports randomly in Android NDK build.