Build fixes. Compiler warnings.