fix Makefile to link against libflash