finally fixed linker issues in release