Couple of compilation fixes

Hello,

I encountered a couple of problems while building from git, so I fixed them. 
I also added support for the DESTDIR parameter to make.
E.g.: make DESTDIR="`pwd`/mybuilddir`" install
Furthermore, I fixed the compiler parameter overrides so they actually work and compiles fine.

Regards,
Thermi