Add support for platform definitions