Tweaked compiler flags

Compiler warnings is now enabled in the same way as they were in the old
buildsystem. The NDEBUG flag was turned off since it remove asserts.
It's better to have the asserts left in the released code. Also removing
the asserts caused a lot of warnings about unused variables.
Merge branch 'master' into rtl
Fixed a couple of compile time warnings