misc fixes
Pass platform in via os_platform (apm, test, andropilot etc...)