tweaked to work with gcc and cgo

I had trouble getting cgo to link with the clang library, so I switched the makefile to compile using gcc/g++ and now things work well.