Added library functions for computing atmospheric conditions.
Fixed hostile redefinition of bool.
Fixed simulation boolean defines.