Fixed an early slip from [ttt]
Fixed dynamic loading under Mac OS X
Public headers should not include private config.h
Sources should include config.h from the same directory (factory/)