Merge pull request #1762 from tklein23/develop

Fixed initialization of DynArray in Parameter/ParameterMap to reduce memory footprint
1 should be the lower bound
Set to 1 granulatity minimum threshold in DynArray::set_granularity
Merge pull request #1763 from iglesias/develop

Set to 1 granulatity minimum threshold in DynArray::set_granularity
use 1 even
Refactor is_nan, is_infinity and is_finite in CMath
Disable ProtoBuf detection
Include CheckCXXSourceCompiles in CMakeLists.txt
Small refactoring of CCSOSVM
Fix the seed of PRNG
include Time.h before trying to use gettimeofday()
Fix protobuf cmake detection / generation
add PROTOBUF to doxygen defines
fix various doxygen errors
various further fixes
Fix MACHINE macro defintion
Fix the detecting whether -fPIC compiler flag is needed or not
Use cmake's POSITION_INDEPENDENT_CODE property
fix for issue #1768
fix protobuf compile/linking
Force libstdc++ when compiling modular interfaces
OSX 10.9 uses libc++ by default, but swig does not support it, yet
hence we need to force libstdc++ in case modular interface compilation
Only try to set -stdlib=libstdc++ if compiling with clang
Introduced SGRefObject (pulling refcounting out of CSGObject)
Putting refcounting from SGObject to new super class SGRefObject.