Align the compilation and link flags with master branch. It should fix ROOT-6583
suppress warnings for deprecated LDAP API on OSX 10.10 (Yosemite).
Fix warning induced by assert() in release build
One more update for NDEBUG