Fix build debug and gcov targets
Replace remaining make calls with