Fix the LDFLAGS order so building on windows works.