spa-pod: respect the SPA size for long and int APIs

Fixes some issues for 32bit architectures
2 jobs for spa-pod-32bit-fix in 1 minute and 35 seconds