Work around linker error when ghc is invoked by itself

I was getting the following error on Ubuntu 13.04 when using "ghc -Wall -O2"
to compile a program using direct-sqlite:

/usr/bin/ld: /home/joey/.cabal/lib/direct-sqlite-2.3.3.1/ghc-7.6.2/libHSdirect-sqlite-2.3.3.1.a(sqlite3.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.1'
/usr/bin/ld: note: 'pthread_mutexattr_settype@@GLIBC_2.1' is defined in DSO /lib/i386-linux-gnu/libpthread.so.0 so try adding it to the linker command line
/lib/i386-linux-gnu/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
Merge pull request #25 from joeyadams/linker-workaround

Work around linker error when ghc is invoked by itself