Fix build with -fportable.