Add platform detection macros

This pull requests add some advices about how to properly detect if we are building on the target or development system.