build: Using cmake objects library to improve the build