support -b to force running in background
mymalloc(): don't cast return value; void* is always promoted
mymalloc sets allocated memory to zero; no need for extra memset
netcam.c: tfile_context(): simplify function

This function always returned `ret`, so might as well take a shortcut
and return the pointer directly.
free(): remove unnecessary NULL pointer checks

Calling free() on a NULL pointer is a completely harmless. Reduce code
complexity by removing the unnecessary checks.
Merge pull request #48 from sthen/master

support -b to force running in background
Merge pull request #50 from aklomp/mymalloc

Tweaks to uses of 'mymalloc'
Update CHANGELOG
Fix compile without ffmpeg and older versions
Merge unstable with master
Updated configure script
Optimization of function mjpegtoyuv420p
Patch proposed by Github user aklomp
Link: https://github.com/Mr-Dave/motion/issues/49
Allow netcams with modulo 8 dimensions
Merge pull request #51 from tosiara/unstable

Optimization of function mjpegtoyuv420p
forward definition for setup_signals(), needed on OpenBSD
include rotate.h (for pthread.h) before netcam_rtsp.h
check for V4L2 header in sys/videoio.h as well as linux/videodev.h
ioctl(2) "request" is an unsigned long on OpenBSD
don't detect any *BSD as FreeBSD
add comment to config file, need to use input 0 on OpenBSD