Fix all compilation warnings
Merge pull request #185 from ouah/master

Restore gdb-server cleanup handlers for MinGW