Revert fixing function declarations. Revert msys trace functions.
Fix defining __INSIDE_CYGWIN__