Added $(LIB) dependency to install rule.
Added build flag and versino constraint to dependencies.