Added filters to the build and fixed compilation issues.