made lab7 compile on linux