Update build system to make custom versions - closes #323