[master] Fix flags for debugger server socket, works on iOS and Android.