Make library shared instead of static