[Fix] Removes platform attribute

So it can be used with OS X as well.
Merge pull request #11769 from grigutis/master

[Fix] Removes platform attribute