manually compile libraries