fix some issues related to compilation in Mac OS 10.9

1) when compiling samtools in Mac OS 10.9, add -std=gnu89 flag
2) add include path /usr/local/include and library path /usr/local/lib to make the linker see GSL