Split platform flags into compiler and linker flags