fix compile custom libs