Moved foreign type declarations into 'asm' method