Fix type errors and add label to Compile button in Editor