Fixed gcc compiler warnings with release build