replaced LFLAGS after objects when linking