Should fix the make install command on Macs

Closes issue #113, Added an if statement inside CMakeLists.txt to detect if the OS is apple and if so, handle the install correctly