Warning fixes & Syntactic changes and removal of static constructors in environment/

This commit brings with it some iOS8 specific warning fixes. Project should now
build without warnings.