makefile: gcc flags
fix makefile
remove extra refs