Julia: fix LDFLAGS handling

Now Julia compiles again.