Changes for linking library. (not finished)