rebuild targets when source files change
ensure sprintf does not overflow buffer
More sprintf -> snprintf
use snprintf rather than sprintf
transparently handle gzipped query files
Merge pull request #1 from jts/master

Read gzipped files