fixed compilation errors and warnings. removed duplicate pifdefs.v file