Merge pull request #2799 from dumganhar/master

[master] Fix flags for debugger server socket, works on iOS and Android.
Merge pull request #2801 from dumganhar/master

Updating multi-platform-xxx template for win32.. And some warning fixes.
Removing unused codes.
Updating project configuration for Blackberry port.