build: fix various compiler warnings.