build fixes. fix strangely broken code

also STATIC_ASSERT is broken. disabled in timer.hpp

Also changed nu_hz's type back to uint32_t to fix lots of warnings.
There are several HZ-like variables in use (inconsistently). these
should be cleaned up / brought into uniform usage (hint)