Fixed bug 1728 - fixed compiler warnings