build: fix some warnings