1.6 source compatibility
- force recompilation when options changed
- fix cache-dir commandline argument