mk: use extra cflags when linking with compiler