Compile in linux

I have changed a little bit code, and now it can be make under linux.
Tested on my archlinux x86_64. OpenCV library is necessary.