make generated c code work on non-glibc platforms
improve mcheck availability check
Merge into master from pull request #29:
portability improvements, tabs replaced with spaces (https://github.com/floodlight/loxigen/pull/29)