Improve the default flags

Keep debug prints and debug information
Respect LDFLAGS for linking
Cleanup Github client code
Ignore OS X debug output