Workaround for linux-ant issue in test + fix compiler warnings