Enhanced to handle environment variables.
Changed the compiler options.