remove more unused platform.h data and fix configure perms