Use different java classpath separators for unix and windows.

JniTest fails to compile from cmake because the script contains ":" in the classpath to separate path entries for both unix and windows.

Check for the platform on which the build is running and use the appropriate classpath separator for each platform.