frameencoder: clean up qp clipping
sps: reuse encoder macro QP_BD_OFFSET
encoder, sbac, quant: use only macro QP_BD_OFFSET, remove unnecessary get methods
api: declare x265_cli_csps as static const (closes #39)

Fixes link errors when x265.h is included by multiple C files.
cmake: link cli app to shared library on POSIX systems (closes #37)

If you want the CLI to link against the static library on POSIX, just disable
the generation of the shared library.

--HG--
extra : amend_source : 273bd65b0762b10cb56146735bf207ac70acdf18
cmake: fix uninstall target warnings from shell quote escaping issues
cmake: make lib and bin install folders user configurable (closes #40)
cmake: remove /Oi build flag for Visual C++ builds

This flag was actually never necessary for use of SIMD intrinsics, but it was
forcing VC to use intrinsic versions of math functions, and for some versions
of VC this caused odd stack corruption in Win32 debug builds.

https://connect.microsoft.com/VisualStudio/feedback/details/776885/possible-bug-in-visual-studio-2012-c-compiler-related-to-intrinsic-math-functions