cad/magic: Fix build on 15 by explicitly defining configure option
--enable-modular (off by default) enables functions in the code
that are in *.sym unconditionally.
Reported by: https://portsfallout.com/
(cherry picked from commit e674a134a3a8c0dd285a4b4ee6bd103f0282c2ca)