Fix PlatformInterface initialization in non-browser env