A try to fix https://github.com/laurikari/tre/issues/24

But doesn't compile on my machine due to autotools-related problems