Remove core dependencies from generic part

This concerns:
- Communication Non-Secure <--> Secure
- sys/types.h contains some types not defined on all compilers

Signed-off-by: Pascal Brand <pascal.brand@st.com>
fvp: fix compiler warning

Fixes compiler warning when compiling with default
CFG_TEE_CORE_LOG_LEVEL.