It can also build with clang now and fixed pretty much all the warnings thrown by -Wall

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>