Various Makefile and configure script fixes for MacOS target - thanks to Ryan Schmidt and macports
Changed paths: