Made it possible to change debug/release when building mgen-testresources