Added checks in preprocessor instructions.

When compiled, the code first checks if the environment is hosted. If so, raise compilation error.