Fixed Mac OS X build
Remove 'lib' prefix on generated .so/.dylib files
Added some comments