Fix a segfault by wrong argument order
Add debugging flag in makefile
Use bgstrEqual() instead of bgstrCmp()

It's shorter and sematically clearer.