add "check" and "installcheck" targets, straighten out make variable naming of host_os, host_cpu, etc.