build: fix some warnings.