fix compile warnings
remove inlines
fix compiler warnings
more compiler warnings