Ignore *.bundle (OS X shared libraries)
Fix compilation on OS X
Fix broken tests on OS X