fix makefiles for labs (ubuntu 12.04)