Fix flags for debugger server socket

 * Works on iOS and Android
Merge pull request #2792 from folecr/jsdb

Fix flags for debugger server socket