Fix unit test bugs on Mac OS X 64-bit.

This commit fixes bugs 959 (local work size set incorrectly),
960 (concurrencyTest() throws ConcurrentModificationException)
963 (programBinariesTest() causes SIGSEGV) and 964 (builderTest()
cases CL_INVALID_VALUE). After this commit, all JOCL tests should
pass on 64-bit Mac OS X.
Add scripts/check-junit.sh to validate local unit tests ..
Fix build scripts
script: set exec flag
Windows build scripts: Bump ant to 1.8.2
Fix build.xml: Remove gluegen config dependency on ../build using build-temp

Fix copy2temp target and issue it before gluegen of cl-if.cfg.

Note: ${project.root}/build cannot be a hard-dependency since
      ${rootrel.build} is configurable hence
      ${project.root}/${rootrel.build}.
Fix windows test scripts (CP, D_ARGS, ..)
Fix Bug 920 - JOCL does not work on windows with 32 bit vm (1/2)

The 'clGetExtensionFunctionAddress' function pointer declaration was faulty,
i.e. using CL_API_ENTRY instead of CL_API_CALL.
CL_API_CALL on windows is defined as '__stdcall' which impacts Window 32bit platforms.

Fixed same issue w/:
  - clCreateContext
  - clBuildProgram

Same issue occurs with _all_ gluegen generated native function wrappers,
i.e. CL_API_CALL is missing in the function declarations!

I will follow-up w/ this fix in a bit ..
Fix Bug 920 - JOCL does not work on windows with 32 bit vm (2/2)

All gluegen generated native function wrappers,
miss CL_API_CALL in the function declarations
similar to commit 569726132f622e290bebc5d40c96f8115dbcb5da.

Adding gluegen calling convention to cl-impl.cfg:
  LocalProcAddressCallingConvention __ALL__ CL_API_CALL

All tests passed on windows 32bit now!
build.xml: Don't re-generate source (gluegen) if CLAbstractImpl_JNI.c uptodate (use java.generate.skip); Put native code on gensrc/native/jocl
Fix build.xml (regression): Re-activate 'generate.jdk6.autocloseable, generate.jdk7.autocloseable' in java.generate.impl

Regression of commit 46cc6ebfb2f53daebceb9a36b553ff01af56999f
Bug 979: Add 'CL_DEVICE_MEM_BASE_ADDR_ALIGN' to CLDevice and overal maximum to CLContext - Split CLBufferTest and use alignment.

See Bug 979 for remaining issues and discussion.
Minor editing: Remove static imports, using 'final' add some '@XXX' decorations to remove warnings.

Note 'static import' is evil .. :)
Fix memory problems in High/LowLevelBindingTests.

These tests now adaptively reduce the global work size until they
successfully allocate memory for their DirectByteBuffers. This
makes the tests work on JVMs where XX:MaxDirectMemorySize is
smaller than the modern defaults. These tests were failing on
OS X 10.6 for this reason.
Merge remote-tracking branch 'wwalker/fix_jocl_bug_981_out_of_direct_buffer_memory'
Fix OpenCL test failures on Solaris.

Since nobody currently makes an OpenCL driver for Solaris, all the
tests used to fail, which told us nothing. This commit adds code
to check whether OpenCL is unavailable and the OS is Solaris, in
which case the test contents are skipped. If an OpenCL driver ever
appears for Solaris, or if we start testing on another platform
with no OpenCL driver, there's now one single place to add or remove
checks that will allow for this.
Merge pull request #5 from WadeWalker/bug_978_fix_solaris_tests

Fix OpenCL test failures on Solaris for bug 978.
Merge remote-tracking branch 'personal/bug_978_fix_solaris_tests'
Fix new subBufferTest02FloatBuffer() test on Solaris.

The new OpenCL isAvailable() didn't make it into this test due to
a merge slipup.

Change-Id: I049388908b8f2f2869cc018dbf6be86d1a8dcb9d
Merge remote-tracking branch 'jogamporg/master'