use cc for compile, works on Solaris/Linux/OSX
move query to search
hash table headers