Custom build command for mac

Default build command is make for mac, but custom build command can be
given as a parameter.

Change-Id: I27fb27b44bb74b710897ee6ac857849d15db5711
Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>