build: add checks for some compiler warning flags