Better support for platform specific code.

Automatically include platform-specific code in general resource
collections. Should reduce platform-specific build code.