By the way, set SOVERSION to version major. It also fixes wiringPiDev shared library version not correctly set.