fix for static builds with mingw-w64 compilers - part 1
fix for static builds with mingw-w64 compilers - part 2
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.
Changed Texture::bind and Shader::bind to be static functions, that can accept a null argument
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 !
Removed unused #include
Minor indentation correction
Improved the API documentation stylesheet
Fixed joysticks not detected when checked at application startup.
Minor addition in the API documentation
Added Unicode window title support.

- Changed SFML API to receive an sf::String as the window title instead
  of a std::string (in Window::Window and Window::setTitle).
- Changed RenderWindow and WindowImpl APIs accordingly.
- Changed WindowImplWin32 to use a Unicode window title only if the
  target OS supports it.
- Changed WindowImplCocoa to always use Unicode window titles and added
  a utility function to Window/OSX/cpp_objc_conversion.mm.
- Changed WindowImplX11 to set the Unicode window title as part of the
  _NET_WM_NAME specification, which sadly is not part of the official X
  standard, but the closest anything can get. Still set regular ASCII
  title as fallback.
Simplified UTF-8 encoding procedure for X11 window title.

- Instead of first converting to a wide string and converting that to
  UTF-8, now convert to UTF-8 directly using sf::Utf32::toUtf8.
- Modify OS X sf::String to NSString helper to work for big-endian
  architectures (like OS X 10.5 on PowerPC) as well.