changes to build for pac rom