Fix build on GCC-based systems:
ujprog.c:2595: error: 'for' loop initial declaration used outside C99 mode
Approved by: portmgr (tier-2 blanket)