improve osx bundle support (and remove config.h for now)