Refactor Compile class and rename it to Build