Merge into master from pull request #27:
portability improvements (https://github.com/floodlight/loxigen/pull/27)