[tests] Add support for a link_flags lit parameter.
 - This is useful for testing with custom ABI libraries.
 - Patch by Michael van der Westhuizen.