Fixed CFLAGS and CXXFLAGS propagation for platform.mk to use

I tested this Brian and it seemed to propagate the CFLAGS and CXXFLAGS correctly now.