corrected warnings and added release build