Added support for platforms, as well as libraries.