CMakeLists.txt: Do not pass -pthread on VxWorks.
CMakeLists.txt: Define LOG4CPP_FIX_ERROR_COLLISION on VxWorks.
Only include <memory.h> if necessary.
Don't use O_LARGEFILE on VxWorks.
Fix includes on VxWorks.