Fixed almost all linker errors, mismatched const's