Fix build scripts
Fix clang 3.4-3.5 64bit build (boost.atomic problem, see https://svn.boost.org/trac/boost/ticket/9610)