[profile] Flatten profile runtime - define platform-specific code in sources, not in the build system