PORTS: fix building package for cross compiling