Allow compilation with clang on Mavericks

Added the patch from here since Mavericks no longer reports clang as gcc:
https://github.com/mangelajo/KicadOSXBuilder/issues/14#issuecomment-28936114
Merge pull request #15 from joe714/homebrew-kicad

Allow compilation with clang on Mavericks
Made changes related to github lib.