Moved typedefs out of MinGW-w64 config headers; added heap functions