Separated apu stuff into a static lib so both the player frontend and debugger can use it properly