ice: Generalise build configuration

- Don't directly edit the makefiles when we can just
  configure things via command-line arguments
- Install python into correct prefix