Fixed problems with building Release