Add sol.main.get_platform function. Fix https://github.com/christopho/so...

...larus/issues/562