Add conditional blocks according to the platform