Initialized j, added Makefile switch for Mac OS X