Fixed link bug and removed build-specific files