On macOS, we need some extra libraries to build the codebase, therefore two packages were introduced to the project. They are `binutils` and `gettext`. It takes a lot of time to build these packages completely. This PR introduces a way to build the needed libraries and other stuff are skipped to build. It can save the time to build the third-party libraries on macOS.