Hide hybris code behind platform defines

Add platform defines to hide all the bad code