added multi-core compilation support