Copy samples/tcl from OCCT tarball

These tcl scripts used to be shipped in src/DrawResources/,
but they have been moved upstream some time ago.
Also copy data/occ/wing.brep into samples/tcl/wing.brep,
it is needed by DataExchangeDemo.tcl.
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.
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.
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.
Fix build failure on Win32

Commit ed51438 breaks building on Win32, since Standard_Size
and Standard_Utf32Char define the same types.
Modify Standard_Integer.hxx to add overloaded functions only
when these types are different.
Drop ifdef guard to fix a build failure with MSVC

We added the ifdef guard in d5b9cbb because MSVC was
smart enough to find that the return statement could
not be reached; this method has been modified in OCCT
6.6.0 and now the return statement is needed.

This commit fix issue #389.
Fix OCAFExport_test failure

Also set CSF_StandardDefaults environment variable when
running these tests, it is also needed in order to
read src/StdResource/Standard file.
Bugfix: Fix Extrema_Curve2dTool::IsRational()
typedef bool Standard_Boolean

It was before
  typedef bool Standard_Boolean
Replace ${PROJECT_NAME} and @PROJECT_NAME@ by OCE in all CMake files

OCCT developers generate their CMake files from WOK files, so
they won't use our files.
Write all CMake command names in lowercase
Cosmetics: Make whitespace more consistent
Fix typo

Thanks to tpaviot.
Fix Standard_Boolean/Standard_Integer mismatch now that Standard_Boolean is redefined as a bool