Option "--disable-shared" breaks vector build on Mac OS X.

The "--disable-shared" option causes an error during the compilation of the "vector" package (0.10.11.0) on Mac OS X (10.9.5, ghc 7.8.3, Cabal 1.18.1.3):

> [ 5 of 19] Compiling Data.Vector.Fusion.Stream.Monadic ( Data/Vector/Fusion/Stream/Monadic.hs, dist/dist-sandbox-a6798d61/build/Data/Vector/Fusion/Stream/Monadic.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package primitive-0.5.3.0 ... <command line>: can't load .so/.DLL for: libHSprimitive-0.5.3.0.dylib (dlopen(libHSprimitive-0.5.3.0.dylib, 9): image not found)
cabal: Error: some packages failed to install:
vector-0.10.11.0 failed during the building phase. The exception was:
ExitFailure 1