Update core, winapi, detail from master.