Refactor + Build dependencies extracted from MakeMKV forum thread