A few warnings and revamped the config a little to allow compiling without bam.