Depend nifs compilation and usage on env var