removed redefined ENABLE_DEBUG
remove static flag, it's not static
add missing include
fixed printf patterns
Merge pull request #67 from mehlis/master

Fixups: build with debug enabled