Fix framework importing issues.
Fix build order.