build: Properly conditionalize progname.c

Open Emily requested to merge emilazy/libbsd:fix-progname-conditional into main

This wasn't achieving the original aim of skipping the build on macOS.

Merge request reports