add cross built-in func
 add compile flags