Fixed building libraries