support for mingw (mxe.cc)

I tested these changes with the latest mxe (https://github.com/mxe/mxe) and ros-hydro-catkin.
To workaround catkin issues with cross-compilation I had to copy `devel/*sh` files from directory with native build to directory with cross-compiled build and re-run cmake.