supress debug output, compiler warns

This enabled FINAL_BUILD to suppress those distracting "not precached" warnings, and fixes/suppresses most of the compiler warnings.