added -j1 option to the second emake call (otherwise some file doesn't get found)