Fix env variable setting.  Add stubs for compilation