set output directory for pcompiler; fixed bugs