Add TARGET_PLATFORM macro for target selection