add multi layer option and YUV dir setting in configure file