OS X build: fix libffi misconfiguration

Fix libffi's configure to return the real library path instead of an 
unresolved '$(libdir)' which also caused the glib build step to fail.