Fixed bunch of build issues with autoload and dbi