buildsystem: parallel build fixes

Signed-off-by: Andrew Andrianov <andrew@ncrmnt.org>