Fixed gcc errors, made Makefile more flexible with wildcard