Properly link library against opencv