For https://gitlab.winehq.org/wine/wine/-/merge_requests/1001.
-- v2: winebuild: Split output_static_lib into output_(import|static)_lib. winebuild: Use asm_name to add underscore prefix in asm_globl. winebuild: Split get_link_name into a separate get_abi_name helper.