[build] fix bus error while execute make -jN (N>1)
Merge pull request #747 from Chilledheart/patch-1

[build] fix bus error while execute make -jN (N>1)