build fixes, remove all compiler warnings