[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] littlejoelgriffo:
Well I successfully followed this guide and did everything right right up until the very last step, which was "make -j4 bootimage". Everytime I try and do it I get errors :( Here's what terminal had to say:

glebe@glebe:~/android/system$ make -j4 bootimage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20131215-UNOFFICIAL-anzu
TARGET_PRODUCT=cm_anzu
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a8
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.5.0-17-generic-x86_64-with-Ubuntu-12.10-quantal
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/glebe/android/system/out
============================================
/home/glebe/android/system/out/target/product/anzu/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/glebe/android/system/out/target/product/anzu/obj/include/qcom/display-legacy/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/glebe/android/system/out/target/product/anzu/obj/include/qcom/display-legacy/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/glebe/android/system/out/target/product/anzu/obj/include/qcom/display-legacy/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/glebe/android/system/out/target/product/anzu/obj/include/qcom/display-legacy/copybit_priv.h'
*** Overlay change detected, clean shared intermediate files...
*** rm -rf /home/glebe/android/system/out/target/common/obj/APPS/framework-res_intermediates /home/glebe/android/system/out/target/common/obj/APPS/Torch_intermediates /home/glebe/android/system/out/target/common/obj/APPS/LatinIME_intermediates
build/core/Makefile:44: warning: overriding commands for target `/home/glebe/android/system/out/target/product/anzu/system/lib/libril.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/glebe/android/system/out/target/product/anzu/system/lib/libril.so'
No private recovery resources for TARGET_DEVICE anzu
make -C kernel/semc/msm7x30 O=/home/glebe/android/system/out/target/product/anzu/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/glebe/android/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" headers_install
Install: /home/glebe/android/system/out/host/linux-x86/bin/mkbootfs
make[1]: Entering directory `/home/glebe/android/system/kernel/semc/msm7x30'
Install: /home/glebe/android/system/out/host/linux-x86/bin/checkpolicy
Install: /home/glebe/android/system/out/host/linux-x86/bin/checkfc
bionic/libc/arch-arm/bionic/crtbegin.c:30:20: fatal error: stddef.h: No such file or directory
compilation terminated.
make: *** [/home/glebe/android/system/out/target/product/anzu/obj/lib/crtbegin_static1.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from bionic/libc/bionic/crtbrand.c:26:0:
bionic/libc/include/stdint.h:31:20: fatal error: stddef.h: No such file or directory
compilation terminated.
make: *** [/home/glebe/android/system/out/target/product/anzu/obj/lib/crtbrand.s] Error 1
CHK include/linux/version.h
make[1]: Leaving directory `/home/glebe/android/system/kernel/semc/msm7x30'
glebe@glebe:~/android/system$

I've tried lots of things like redoing the whole guide and trying to compile for smultron and mango, but nothing works :(