Fix build failure of portable library.