Apply patch fixing optflag parsing
Apply patch fixing warinings
Add patch fixing handling of buffers
Fix retval in test
Do not use date in a binary
Fix cloexec issues