Makes joystick button ordering predictable.

Fixes unpredictable or unintentional joystick button ordering by sorting
buttons according to their HID Usage property.  This allows SFML to
adhere to a manufacturer's (or driver implentation's) intended button
ordering.
Fixed minor typecast warning in Shader.cpp
Fix get/set window position on OS X
Fix compilation issue on 10.5
Improve Xcode 4 templates (close #285)

This is a complete rewrite.
Remove a part of CMake script that doesn't work any more.

No attempt to fix this part of the script is made because it change too
often (at each OS release) and no gain would result from a potential
fix.

SDKs are not stored in /Developer anymore with recent versions of Xcode.

Now the users should manually set the following variables :
 - CMAKE_OSX_SYSROOT,
 - CMAKE_OSX_DEPLOYMENT_TARGET,
 - CMAKE_OSX_ARCHITECTURES
Add freetype.framework and edit CMake accordingly. (Close #241)

Freetype version 2.4.11, build for OS X 10.5 and above as universal
binary (i386 + x86_64)
Improve Xcode templates post build script : now copy freetype too

Additionally, the script is more robust and can explain what failed.
Merge branch 'joybutton-ordering-osx' of git://github.com/ryanfields/SFML into fix/joystick
Improve Xcode templates : now you can target 10.5 without headache !
Merge https://github.com/LaurentGomila/SFML

Conflicts:
	CMakeLists.txt