made the cache clearing a bit more clever
fix javah dependency hell