fix: Fix some compile errors caused by more strict coding conventions enforced by -Wall and -Werror
chg: Rework the Makefile to use the system defaults where possible