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

This reverts commit 049a52a5eb1cebef1f6997b7bbe941ecbb448f3f.