Fix compilation error/warnings with eclipse.