Add bad GENERIC_TARGET_LIBRARY workaround

This bug is preventing builds on Fedora