conditionally compile based on env variable