added cross compile support