Swap #if blocks in uid.c so target platform gets checked before host