Enable release build
Eliminate some warnings