Fixed building library for xCode.