Merge changes from topic "lto-by-default" into integration

* changes:
  fix(libc): make sure __init functions are garbage collected
  fix(platforms): remove platform_core_pos_helper()