Put LDFLAGS after object files to ensure correct link order