made the project more portable

better organization of the SConscript file
fixed StdPeriph compilation problems with -Wall, -Wextra, -Werror