simplify platform_libs assignment