switch to env variable based static/dynamic switch for windows