This bug also affects Wine from winehq.org source: configure scripts can't detect sound system (ALSA) and several other libraries properly. Linking asm folder to arch-specific directory with actual header resolves issue.