Moved around `#-}` ending RULES blocks to get Vector to build

The ending `#-}` of a RULES block would cause an error if it was on a new line
by itself. In these cases I moved it up to the next non empty line.

Combinine #ifdef in a rules block caused additional problems.
An error was caused if the RUlES block ended with

    #endif #-}

In these cases I copied `#-}` into each branch of the #ifdef.

os: mac osx 10.9.2

$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3

$ cabal --version
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library
Merge pull request #23 from Davorak/master

Moved around `#-}` ending RULES blocks to get Vector to build