use cmake defines instead of environment variables when building nutools