common: fix minor issues in Makefiles

- fix building with multiple jobs
- fix src/test dependencies
Merge pull request #13 from plebioda/fix-minor-issues-in-makefiles

common: fix minor issues in Makefiles