[core] allow platform override