boost: Refactor into generic.nix
boost: Fix incompatible applications