Don't search for boost package if cpp-netlib is not used
Fix build script
Fix OSX compilation error