updated freehdl and mingw to use global environment variables