Programs Updated to compile with MinGW