tweaked to work with gcc and cgo

I have errors getting the clang compiled library to work with cgo, so I switched the makefile to use gcc/g++ and things now work fine.