add debug flags for compiling cpp files
make extern "C" function non implicit
Merge pull request #55 from duthils/try-running-mac

Try running mac