configure: Run SHFLAGS through ldflags_filter()