Add workaround for bad GENERIC_TARGET_LIBRARY

This bug is preventing builds on Fedora