Work around groovy failure with some JRE-s

by compiling some .groovy files instead of interpreting them.

A similar problem has been reported at http://trac.xbmc.org/ticket/13394 , but groovy 2.2.1 failed for me even after removing the '+' sign from the absolute paths.