Resolved various compiler warnings.