fixed compilation order for opencv for compiling in Linux