fix for cross-compile
I'm cross-compiling for aarch64. This change fixes some build-time/runtime dependency distinctions so that build works. I haven't tested the result yet--some modules in nixpkgs are broken--but this is at least a step in the right direction.