Macaroni and Cheese Ham Pie