Minor cleanup to compile without warnings (GCC)
Started cleanup to compile cleanly with clang
Tested on FreeBSD (x86) and ArchLinux (ARM)
Added background patch created by hoho (http://www.streamboard.tv/wbb2/thread.php?postid=481348#post481348)
Merge pull request #3 from nrosier/master

Code cleanup + background patch