fix Makefile/gcc compilation