Brainweaver: finally fixed crosscompiling bug