better amd detection
added build scripts
assigning externals to this in factory scope to make it accessible via _require_