added multi core compilation