makedef: Extend the script for use with mingw tools as well