Ok, seems to work with a different compiler. I used the one from Pascals post in this thread:
Script Compiler or Rhino V6 Bug?
Don’t know whats the difference with the actual one from this link:
https://www.rhino3d.com/download/rhino/5.0/rhinoscriptcompiler
thanks Tobias