Use multi-thread and ccache to speed up compilation

Get the number of cpu cores and use -j option to specify the number of make job to run simultaneously. And add ccache support in build system. This will decrease the clean building time down to 15sec.