build: Fix compiler warnings/errors.