makefile portability enhancement, courtesy @yrmt