Adapt to last ctrulib revision.
Change MemAlloc() & co. to use memalign()/free() and fix allocation of the GPU command buffer as suggested by fincs.
Fix sleep mode (requires ctrulib update).