Fixes for BUNDLE_SRC builds.

FreeImagePlus didn't have its library paths being set properly and
the _TESTING targets were failing because they assume USE_BUNDLE_SRC isn't
being used.
Made SET_TARGET_OUTPUT_DIRECTORIES exclude the runtime directory.

The runtime directory should remain the same as that of oce so that dll's
are put in a location were they can be used.
Fixed cmake issue where the .dll copying for testing wasn't occuring at all for USE_BUNDLE_SOURCE
Move detection of FreeType, TKService requires it
Removed SET_TARGET_OUTPUT_DIRECTORIES.

This MACRO isn't needed since none of the oce-win-bundle packages override these
settings. The default values will simply be inherited.
Modified the .lib definitions to discover the library using ARCHIVE_OUTPUT_DIRECTORY.

Also removed BUNDLE_LIBRARY_RESULT_DIRECTORY which is no longer used.
Fix small typo
Fix build failure on Mac OSX 10.5, posix_memalign was introduced in 10.6

We fixed a related issue in 51e8674:
  Call _mm_malloc if mm_malloc.h header is found, otherwise call
  posix_memalign if this function was found, otherwise call malloc.

This patch had been dropped after 0.12 because of an incompatible change
with OCCT 6.6.0.
This commit modifies src/Image/Image_PixMap.cxx to match the version
in OCE 0.12.

Fixes issue #378.
Merge pull request #373 from tpaviot/review/TKService-requires-FreeType

Move detection of FreeType, TKService requires it
Add missing overloaded function HashCode(const unsigned int&, const Standard_Integer&)

Fix build failure on Mac OSX 10.5, see discussion in issue #378.
Fix conflicting definitions of GLintptr on Mac OSX 10.5

See discussion in issue #378.
Link OCAFExport_test against FWOSPlugin and TKBin

This is the same problem as in commit e9ad629, this test
loads FWOSPlugin and TKBin at run-time.  Since there is
currently no way to tell plugin directory at runtime, it is
simpler to directly link against these libraries.

Moreover set CSF_PluginDefaults and CSF_PluginUserDefaults environment
variable when running this test to load resource file from the build
tree.
Merge pull request #358 from camio/bundle-fixes

FreeImagePlus didn't have its library paths being set properly and
the _TESTING targets were failing because they assume USE_BUNDLE_SRC isn't
being used.
Fix typo in previous commit
Add "-fpermissive" flag for MinGW-w64 to suppress casting errors that prevent compilation

Compiling with 64-bit MinGW throws errors about losing precision when casting between different sized pointers. These errors prevent the build process from completing. This is a temporary fix until the long term goal of removing all compiler errors is met.
Clean up top-level directory

Move cmake configuration files into a new directory adm/cmake/config/,
and shell and bat files into a new directory scripts/.
There is one exception, CTestConfig.cmake, it cannot be moved into
another directory.

Adjust CMakeLists.txt accordingly.
Allow disabiling freetype in TKService
Remove implicit linking of the freetype library
Fix loading of TKOpenGl

The TKOpenGl library name was previously returned by the
Graphic3d_GraphicDevice::ShrEnvString method.
We had modified it in the past in order to support debug
libraries on Windows.

Our changes did no more apply cleanly on OCCT 6.6.0, and since
OCCT developers claimed that TKOpenGl is no more loaded at
runtime, our changes had been discarded.

Qb noticed that TKOpenGl is still loaded at runtime, so reinstate
our changes, but this time against Graphic3d::InitGraphicDriver.
Merge pull request #386 from tpaviot/review/fix-freetype-linking

Remove implicit linking of the freetype library