add parallel build support
Merge pull request #26 from luvit/fixes/parallel_build

add parallel build support