fix some buggy bugs with the makefile and the material file parser