Some changes to reduce the mingw complaints
Tried to add GDB support