Make Julia work on 10.9

I'd appreciate if somebody not on OS X 10.9 could test this. I also had to hardcode "-L/usr/local/lib -lgfortran". Is there a better option? @nolta ? @vtjnash ?