added cross compile support
dropped redundant imports