Fix tests building
Do not crash when calling deallocate() on LinearAllocator
Use LinearAllocator to allocate subsystems in device