Fix compilation

The ROM now builds and runs with the copybit hack but it's not certain whether it works fully yet.