Revert "Revert "Modify some files to compile for YUNEEC""

This reverts commit f10e3e83587057be66872021c9f7ed441bc1169d.