* fixed getcwd error on OSX maverick
* fixed -undefined dynamic_lookup warning on OSX
* fixed multiple extern C warning in pyglue