build nutools without using only cmake defines