Remove core dependencies from generic part

This concerns:
- Communication Non-Secure <--> Secure
- asm.S, which is arm specific
- sys/types.h contains some types not defined on all compilers

Signed-off-by: Pascal Brand <pascal.brand@st.com>