Changes to enable building with SciDB 13.11.
Added convenient env variable settings to CMakeLists.
Added correct link options in CMakeLists.
Fixed code to work with updated DBArray API.