change resolution update logic
fix reference picture modification bug
Removed unused header files in processing src
include ifdef guard
Removed unused headers in encoder core
Removed unused headers in decoder core
Fix building for freebsd in 64 bit mode
Fix building threading for freebsd

FreeBSD (and at least NetBSD as well) still use hw.ncpu without
deprecating it, contrary to apple.
Merge pull request #213 from licaiguo/update-resolution

change resolution update logic -- review #66
Fix the old MSVC version of WelsGetTimeOfDay

The _ftime function returns void.

This fixes building on MSVC 2005.
Remove a hardcoded debug path specific to somebody's environment

Instead of using platform specific paths, just use the local
directory instead, reducing the amounts of ifdefs.
Remove the legacy makefile based build system

The new one is much more flexible. The old one is unmaintained.
Merge pull request #224 from mstorsjo/msvc2005

Fix building on MSVC 2005
Merge pull request #228 from mstorsjo/remove-hardcoded-path

Remove a hardcoded debug path specific to somebody's environment
Merge pull request #214 from licaiguo/fix-rpl

fix reference picture modification bug -- review #67
Merge pull request #212 from varunbpatil/enc_core_cleanup

Removed unused header files in encoder core
Merge pull request #215 from varunbpatil/dec_core_cleanup

Removed unused headers in decoder core
Merge pull request #216 from varunbpatil/processing_cleanup

Removed unused header files in processing src
Merge pull request #221 from mstorsjo/freebsd

Update building on FreeBSD
Merge the encoder/decoder crt_util_safe_x.h into the common lib