build: Fix many compiler warnings