fix GTDBG macro for gcc
default to shared library for unix
ignore built shared library
clean up shared library