add 'mac' as make target
remove compile warnings