Reorganize libsystem's internal headers

Signed-off-by: Alex Smith <alex@alex-smith.me.uk>