I've been trying to add thread support to GCC, well at least mutexes, however when i try to link my app with it i get a linker error because it cannot find the sceKernelSema functions. Anyone has ideas how to link apps with these functions in user mode?