adding option to use system libs or force internal