Added library version variable when creating library targets to set the version of dynamic libraries.