fixes some compiler warnings

don't call deprecated functions